#include<stdio.h>
#include<iostream>
using namespace std;
class Student
{
	char* name;
	int score;
public:
	Student(char* r, int g)
	{
		name = r;
		score = g;
	}
	friend char Compare( Student s1, Student s2)
	{
		if (s1.score > s2.score)
			cout <<'>';
		else
			cout << '<';
		return 0;
	}

};
int main()
{
	char s[10] = { 0 };
	char m[10] = { 0 };
	int i=0;
	int j=0;
	cin>>s;
	cin >> i;
	cin>>m;
	cin >> j;
	Student s1(s, i);
	Student s2(m, j);
	Compare(s1, s2);
}
